﻿// Decompiled with JetBrains decompiler
// Type: Netick.Unity.DefaultSceneHandler
// Assembly: Netick.Unity, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E128C7FD-39ED-4452-86AC-6EC748457030
// Assembly location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Runtime\Netick.Unity.dll
// XML documentation location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Runtime\Netick.Unity.xml

using UnityEngine.SceneManagement;

#nullable disable
namespace Netick.Unity;

public class DefaultSceneHandler : NetworkSceneHandler
{
  public override int CustomScenesCount => 0;

  protected override ISceneOperation LoadCustomSceneAsync(
    int index,
    LoadSceneParameters loadSceneParameters,
    out string sceneName)
  {
    sceneName = "";
    return (ISceneOperation) null;
  }

  protected override ISceneOperation UnloadCustomSceneAsync(Scene scene) => (ISceneOperation) null;

  protected override ISceneOperation LoadBuildSceneAsync(
    int buildIndex,
    LoadSceneParameters loadSceneParameters)
  {
    return (ISceneOperation) new BuildSceneOperation(SceneManager.LoadSceneAsync(buildIndex, loadSceneParameters));
  }

  protected override ISceneOperation UnloadBuildSceneAsync(Scene scene)
  {
    return (ISceneOperation) new BuildSceneOperation(SceneManager.UnloadSceneAsync(scene));
  }
}
